<?php
/**
 * Template name: QQ群联盟
 */

get_header();
//QQ群联盟CSS
wp_enqueue_style('qq_group_style', trailingslashit(get_stylesheet_directory_uri()) . 'assets/css/pages/qq_group.css?van_ver=' . VAN_VER);
$qq_group_set = _van('qq_group_set');
$qq_group_foot = _van('qq_group_foot');
?>
<?php if ( _van('qq_group_head_set') == true): ?>
<section class="yfx-page-bg yfx-inline yfx-overflow-hidden yfx-flex yfx-flex-middle yfx-flex-center yfx-cat-category">
    
    <img src="<?php echo _van('qq_group_head_bg'); ?>">
    
	<div class="yfx-overlay-primary yfx-position-cover"></div>
	<div class="yfx-overlay yfx-position-center yfx-text-center yfx-light">
		<h3 class="yfx-position-relative yfx-light yfx-margin-remove"><?php the_title(); ?></h3>
		<?php echo _van('qq_group_head_title'); ?>
	</div>
</section>
<?php endif; ?>
    <div class="yfx-content">
        <div class="yfx-qqqun-bg">
            <div class="yfx-grid-medium" yfx-grid="">
                <?php
                if ($qq_group_set) {
                    foreach ( $qq_group_set as $key => $value) {
                ?>
                <div class="yfx-medium-item">
                    <ul>
                        <li class="img"><img src="<?php echo $value['qq_group_img']; ?>" alt=""></li>
                        <li class="name"><?php echo $value['qq_group_title']; ?></li>
                        <li class="qqNumber">群号:<?php echo $value['qq_group_num']; ?> <em><?php echo $value['qq_group_people']; ?></em></li>
                        <li><a href="<?php echo $value['qq_group_href']; ?>" rel="nofollow" target="_blank">加入QQ群</a></li>
                    </ul>
                </div>
                <?php } } ?>
            </div>
        </div>
    </div>
        
<div class="yfx-container">
    <section class="yfx-container yfx-margin-medium-bottom yfx-margin-top yfx-qqqun-row">
    	<div class="yfx-container">
    	    	<div class="yfx-background-default yfx-padding-app yfx-margin-medium-bottom yfx-margin-top">
    	    <?php
    		if ($qq_group_foot) {
    			foreach ( $qq_group_foot as $key => $value) {
    		?>
    	
    		 
    			
    				<h2 class="apply"><?php echo $value['qq_group_foot_title']; ?></h2>
                      <blockquote><?php echo $value['qq_group_foot_text']; ?></blockquote>
    		
    		<?php } } ?>
    </div>	
    	</div>
    </section>
    
</div>
<?php get_footer();?>